using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Text;

namespace Workflows.Components.Reports
{
    public enum ReportDataSourceType
    {
        Nothing=0,
        Scalar=1,
        Table=2,
        DataSet=3
    }

    [Serializable]
    public class ReportDataSource
    {
        private string _DataSourceName;

        public string DataSourceName
        {
            get { return _DataSourceName; }
            set { _DataSourceName = value; }
        }

        private string _ConnectionString;

        public string ConnectionString
        {
            get { return _ConnectionString; }
            set { _ConnectionString = value; }
        }

        private string _SqlCommandText;

        public string SqlCommandText
        {
            get { return _SqlCommandText; }
            set { _SqlCommandText = value; }
        }

        private CommandType _CommandType;

        public CommandType CommandType
        {
            get { return _CommandType; }
            set { _CommandType = value; }
        }

        private List<SqlParameter> _Parameters;

        public List<SqlParameter> Parameters
        {
            get { return _Parameters; }
            set { _Parameters = value; }
        }

        private ReportDataSourceType _ReturnType;

        public ReportDataSourceType ReturnType
        {
            get { return _ReturnType; }
            set { _ReturnType = value; }
        }
    }
}
